package com.ruoyi.delivery.service.impl;

import com.ruoyi.delivery.domain.DelLogisticInfo;
import com.ruoyi.delivery.mapper.DelLogisticInfoMapper;
import com.ruoyi.delivery.service.IDelLogisticInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DelLogisticInfoServiceImpl implements IDelLogisticInfoService {

    @Autowired
    private DelLogisticInfoMapper logisticInfoMapper;

    @Override
    public DelLogisticInfo getCurrentLogisticInfo(String deliveryOrderNo) {
        return logisticInfoMapper.getCurrentLogisticInfo(deliveryOrderNo);
    }

    @Override
    public List<DelLogisticInfo> getAllLogisticDetailHistory(String deliveryOrderNo) {
        return logisticInfoMapper.getAllLogisticDetailHistory(deliveryOrderNo);
    }

    @Override
    public List<DelLogisticInfo> getAllLogisticDetailHistoryByVehicle(String vehicleNumber) {
        return logisticInfoMapper.getAllLogisticDetailHistoryByVehicle(vehicleNumber);
    }

}

